package com.legendshop.openportal.sdk.model.request.v4;

import com.legendshop.openportal.sdk.model.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

import static com.legendshop.openportal.sdk.model.constants.ApiPathConstantsV4.COUPON_PAGE_V4;

/**
 * @Description 查询优惠券列表dto
 * @Author ljk
 * @Date 2025/6/26 14:40
 */
@Data
@ApiModel("查询优惠券列表")
public class CouponPageV4Request extends PageRequest {

    @NotNull(message = "店铺号不能为空")
    @ApiModelProperty(value = "店铺号")
    private Long shopId;

    @ApiModelProperty(value = "优惠券ID")
    private Long couponId;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "使用金额门槛")
    private BigDecimal fullPrice;

    @ApiModelProperty(value = "优惠券的类型  店铺券:shop,指定商品券:product")
    private String couponType;

    @ApiModelProperty(value = "推广范围  自主推广：0 公开推广：1 满减送：2 直播送券：3")
    private Integer promotionScope;

    @ApiModelProperty(value = "领取方式: 0买家领取;1卖家发放")
    private Integer getType;

    @Override
    public String getApiPath() {
        return COUPON_PAGE_V4;
    }
}
